package cn.com.cifi.mars.bean.vo.returnPlan;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 回款计划回款系数
 * @author: JingYuanXiang
 * @date: 2020/11/8 13:56
 */
@Data
public class ReturnPlanReturnCoefficientDetailVo {


    @ApiModelProperty(value = "标准业态")
    private String proProductType;

    @ApiModelProperty(value = "版本名称")
    String versionName;

    @ApiModelProperty(value = "第一月")
    private BigDecimal oneMonth;

    @ApiModelProperty(value = "第二月")
    private BigDecimal twoMonth;

    @ApiModelProperty(value = "第三月")
    private BigDecimal threeMonth;

    @ApiModelProperty(value = "第四月")
    private BigDecimal fourMonth;

    @ApiModelProperty(value = "第五月")
    private BigDecimal fiveMonth;

    @ApiModelProperty(value = "第六月")
    private BigDecimal sixMonth;

    @ApiModelProperty(value = "第七月")
    private BigDecimal sevenMonth;

    @ApiModelProperty(value = "第八月")
    private BigDecimal eightMonth;

    @ApiModelProperty(value = "第九月")
    private BigDecimal nineMonth;

    @ApiModelProperty(value = "第十月")
    private BigDecimal tenMonth;

    @ApiModelProperty(value = "第十一月")
    private BigDecimal elevenMonth;

    @ApiModelProperty(value = "第十二月")
    private BigDecimal twelveMonth;

    @ApiModelProperty(value = "第十三月")
    private BigDecimal thirteenMonth;

    @ApiModelProperty(value = "第十四月")
    private BigDecimal fourteenMonth;

    @ApiModelProperty(value = "第十五月")
    private BigDecimal fifteenMonth;

    @ApiModelProperty(value = "第十六月")
    private BigDecimal sixteenMonth;

    @ApiModelProperty(value = "第十七月")
    private BigDecimal seventeenMonth;

    @ApiModelProperty(value = "第十八月")
    private BigDecimal eighteenMonth;

    @ApiModelProperty(value = "第十九月")
    private BigDecimal nineteenMonth;

    @ApiModelProperty(value = "第二十月")
    private BigDecimal twentyMonth;

    @ApiModelProperty(value = "第二十一月")
    private BigDecimal twentyOneMonth;

    @ApiModelProperty(value = "第二十二月")
    private BigDecimal twentyTwoMonth;

    @ApiModelProperty(value = "第二十三月")
    private BigDecimal twentyThreeMonth;

    @ApiModelProperty(value = "第二十四月")
    private BigDecimal twentyFourMonth;

    @ApiModelProperty(value = "合计")
    private BigDecimal total;

    /**
     * 计算合计
     */
    public void calculationTotal() {
        this.total = this.oneMonth.add(this.twoMonth.add(this.threeMonth.add(this.fourMonth.add(this.fiveMonth.add(this.sixMonth.add(this.sevenMonth.add(this.eightMonth.add(this.nineMonth.add(this.tenMonth.add(this.elevenMonth.add(this.twelveMonth.add(this.thirteenMonth.add(this.fourteenMonth.add(this.fifteenMonth.add(this.sixteenMonth.add(this.seventeenMonth.add(this.eighteenMonth.add(this.nineteenMonth.add(this.twentyMonth.add(this.twentyOneMonth.add(this.twentyTwoMonth.add(this.twentyThreeMonth.add(this.twentyFourMonth)))))))))))))))))))))));
    }

}
